package app.vendorportal.api.marketplace.data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author carl.you
 */
@XmlRootElement(name = "order-submission-status")
@XmlAccessorType(XmlAccessType.FIELD)
public class OrderSubmissionStatus {

    @XmlElement(name = "order-id")
    private String orderId;

    @XmlElement(name = "status")
    private Status status;

    public static enum Status {
        SUBMITTED, /*shipment.status is null this shipment is submittedOrder*/
        CANCELLED, /*shipment.status is KILL or all of pickTicket status is Cancelled*/
        DONE, /*shipment.status is FILL and shipment ,the PickTicket is not null and the pickTicket does not include the UNSHIPPED*/
        IN_PROGRESS /* shipment.status is FILL and shipment ,the pickTicket is  null or the pickTicket include the UNSHIPPED*/
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}
